package com.oma.testcase;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;

public class Privilege {

	public void privilege(WebDriver driver){
		
		//Go to Privilege Form
		((JavascriptExecutor)driver).executeScript("scroll(250,0);");
		//System.out.println("Clicking Privilege Form");
		driver.findElement(By.xpath("//a[@href='#t13']")).click();
		//System.out.println("Clicked Privilege Form");
		driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
		
		//Select Privileges
		driver.findElement(By.xpath("//form[@id='slctdForm']/table/tbody/tr[3]/td[2]/table/tbody/tr/td[2]/input")).click();
		driver.findElement(By.xpath("//button[@id='recommendBtn' and contains(., 'Submit')]")).click();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		
		//Back to Decision
		System.out.println("Go back to decision");

		
		
	}
	
}
